#include <iostream>
#include <unistd.h>
#include "SharedTest.cpp"
using namespace std;
using namespace zanxin;

int main()
{
    SharedData data;
    while(1){
        data = getdata();
        cout<<data.type<<" "<<data.data[0]<<endl;
        usleep(8000);
    }
    return 0;
}
